package org.jeecg.modules.flower.mapper;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.flower.entity.FlowerLose;
import org.jeecg.modules.flower.entity.FlowerTagInfo;
import org.jeecg.modules.flower.vo.CountNumData;
import org.jeecg.modules.flower.vo.ScreenData;

/**
 * @Description: 标签信息
 * @Author: jeecg-boot
 * @Date:   2021-08-26
 * @Version: V1.0
 */
public interface FlowerTagInfoMapper extends BaseMapper<FlowerTagInfo> {

    IPage<FlowerTagInfo> queryListAndBase(IPage<FlowerTagInfo> page, @Param("ew") Wrapper<FlowerTagInfo> queryWrapper);


    IPage<ScreenData> selectTablePage(IPage<ScreenData> page, @Param("ew") Wrapper<ScreenData> queryWrapper);

    List<ScreenData> poleLengthCom();

    List<ScreenData> monthWorkCom();

    CountNumData currentSortFlower();

    LinkedHashMap<String,Object> queryPoleLevelYear();

    LinkedHashMap<String,Object> queryPoleLevelMonth();

    List<LinkedHashMap<String,Object>> queryVariety();

    Integer checkLoseValid(FlowerLose flowerLose);

//    Integer flowerLose(FlowerLose flowerLose);

    //台账的查询接口
    IPage<FlowerTagInfo>  getListByhose(IPage<FlowerTagInfo> page, @Param("ew") Wrapper<FlowerTagInfo>  wrapper , @Param("personid")String personid);

    //台账总数的查询接口
    Integer getTaginfoCount(@Param("ew") Wrapper<FlowerTagInfo>  wrapper , @Param("personid")String personid);


}
